#include "me_ui.h"
#include "ui_me_ui.h"

me_ui::me_ui(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::me_ui)
{
    ui->setupUi(this);
}

me_ui::~me_ui()
{
    delete ui;
}

void me_ui::paintEvent(QPaintEvent *)
{
    QPixmap img;
    img.load(":/pic/me.jpg");
    img = img.scaled(this->width(),this->height(),Qt::IgnoreAspectRatio);
    QPainter p(this);
    p.drawPixmap(0,0,img);
}

void me_ui::on_backbt_clicked()
{
    emit backup();
}
